package com.hd.tiyu.yuejian.Model;

import com.hd.tiyu.yuejian.JavaBean.Item;
import com.hd.tiyu.yuejian.Service.ItempoService;

import java.util.List;

import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by Administrator on 2017/10/11.
 */

public class ItemposModel {
    private Retrofit retrofit;
        public ItemposModel(){
        retrofit = new Retrofit.Builder()
                .baseUrl("http://172.24.10.175/workout/api.php/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }
    public Call<List<Item>> getitemps(){
        ItempoService itempoService=retrofit.create(ItempoService.class);
        return itempoService.getitempos();
    }
    public Call PeixunItempos(String userid,String train_id,String paynotice,String participantname,
    String participanttel,String adultnum,String paytype,String pay){
        ItempoService itempoService=retrofit.create(ItempoService.class);
        return itempoService.PeixunItempos(userid,train_id,paynotice,participantname,participanttel,adultnum,paytype,pay);
    }

}
